﻿// Write a method that returns the last digit of given integer as an English word. 
// Examples: 512 -> "two", 1024 -> "four", 12309 -> "nine".

using System;

public class LastDigitToWordProgram
{
    static void Main()
    {
        int number = 35353;

        Console.WriteLine("Last digit of the number {0} is {1}", number, LastDigitToWord(number));
    }

    public static string LastDigitToWord(int number)
    {
        string[] numberWords = { 
                                   "zero", "one", "two", "three", "four", 
                                   "five", "six", "seven", "eight", "nine"
                               };
        int lastDigit = Math.Abs(number) % 10;

        return numberWords[lastDigit];
    }
}